<?php
namespace Wap\Model;use Think\Model\RelationModel;class GoodsClassModel extends RelationModel {
	protected $_link = array(					'Product'=>array(  											'mapping_type'      =>self::HAS_MANY,   												'class_name'        => 'Product',   // 定义更多的关联属性 数据表												'mapping_name'  => 'goods',												'foreign_key'       => 'gc_id',												'condition'=>'goods_commend=1 AND goods_verify=1 AND goods_state=1',											   'as_fields' => 'gc_id',					   'mapping_limit' => 3				   ),					   		 
	);
			
}